Part Number Hot Search : 
UF804 TC9215A 826M0 63D17 UF804 PJL9452A TA0797A KMP8400
Product Description
Full Text Search
 

To Download P80CL51HFP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  d a t a sh eet product speci?cation supersedes data of january 1995 file under integrated circuits, ic20 1997 apr 15 integrated circuits p80cl31; p80cl51 low voltage 8-bit microcontrollers with uart
1997 apr 15 2 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 contents 1 features 2 general description 2.1 versions: p80cl31 and p80c51 3 applications 4 ordering information 5 block diagram 6 functional diagram 7 pinning information 7.1 pinning 7.2 pin description 8 functional description overview 8.1 general 8.2 cpu timing 9 memory organization 9.1 program memory 9.2 data memory 9.3 special function registers (sfrs) 9.4 addressing 10 i/o facilities 10.1 ports 10.2 port options 10.3 port 0 options 10.4 set/reset options 11 timers/event counters 12 reduced power modes 12.1 idle mode 12.2 power-down mode 12.3 wake-up from power-down mode 12.4 power control register (pcon) 12.5 status of external pins 13 standard serial interface sio0: uart 13.1 multiprocessor communications 13.2 serial port control and status register (s0con) 13.3 baud rates 14 interrupt system 14.1 external interrupts int2 to int9 14.2 interrupt priority 14.3 interrupt registers 15 oscillator circuitry 16 reset 16.1 external reset using the rst pin 16.2 power-on-reset 17 mask options for p80cl31 and p80c51 17.1 p80cl31: romless version 17.2 p80c51: 5v standard version 18 special function registers overview 19 instruction set 20 limiting values 21 dc characteristics for p80cl31 and p80cl51 22 dc characteristics for p80c51 23 ac characteristics 24 p85cl000hfz piggy-back specification 24.1 general description 24.2 feature differences/additional features with respect to p80cl51 24.3 common specification/feature differences between p85cl000hfz and p83cl410/p80cl51 25 package outlines 26 soldering 26.1 introduction 26.2 dip 26.3 qfp and vso 27 definitions 28 life support applications
1997 apr 15 3 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 1 features full static 80c51 central processing unit 8-bit cpu, rom, ram, i/o in a 40-lead dip, 40-lead vso or 44-lead qfp package 128 bytes on-chip ram data memory 4 kbytes on-chip rom program memory for p80cl51 external memory expandable up to 128 kbytes: ram up to 64 kbytes and rom up to 64 kbytes four 8-bit ports; 32 i/o lines two 16-bit timer/event counters on-chip oscillator suitable for rc, lc, quartz crystal or ceramic resonator thirteen source, thirteen vector, nested interrupt structure with two priority levels full duplex serial port (uart) enhanced architecture with: C non-page oriented instructions C direct addressing C four 8-byte ram register banks C stack depth limited only by available internal ram (maximum 128 bytes) C multiply, divide, subtract and compare instructions reduced power consumption through power-down and idle modes wake-up via external interrupts at port 1 frequency range: 0 to 16 mhz (p80c51: 3.5 mhz min.) supply voltage: 1.8 to 6.0 v (p80c51: 5.0 v 10%) very low current consumption operating ambient temperature range: - 40 to +85 c. 2 general description the p80cl31; p80cl51 (hereafter generally referred to as the p80clx1) is manufactured in an advanced cmos technology. the p80clx1 has the same instruction set as the 80c51, consisting of over 100 instructions: 49 one-byte, 46 two-byte, and 16 three-byte. the device operates over a wide range of supply voltages and has low power consumption; there are two software selectable modes for power reduction: idle and power-down. for emulation purposes, the p85cl000 (piggy-back version) with 256 bytes of ram is recommended. this data sheet details the specific properties of the p80cl31; p80cl51. for details of the 80c51 core see data handbook ic20 . 2.1 versions: p80cl31 and p80c51 the p80cl31 is the romless version of the p80cl51. the mask options on the p80cl31 are fixed as follows: all ports have option 1s (standard, high after reset) oscillator option: oscillator 3 power-on-reset option: off. the p80c51 is a restricted-voltage range version of the p80cl51. the operating voltage is 5.0 v 10%. 3 applications the p80clx1 is especially suited for real-time applications such as instrumentation, industrial control, intelligent computer peripherals and consumer products. the p80clx1 also functions as an arithmetic processor having facilities for both binary and bcd arithmetic plus bit-handling capabilities.
1997 apr 15 4 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 4 ordering information note 1. refer to the order entry form (oef) for this device for the full type number, including options/program. type number (1) package romless rom name description version p80cl31hfp P80CL51HFP dip40 plastic dual in-line package; 40 leads (600 mil) sot129-1 p80cl31hft p80cl51hft vso40 plastic very small outline package; 40 leads sot158-1 p80cl31hfh p80cl51hfh qfp44 plastic quad ?at package; 44 leads (lead length 1.3 mm); body 10 10 1.75 mm sot307-2 - p80c51hfp dip40 plastic dual in-line package; 40 leads (600 mil) sot129-1 - p80c51hft vso40 plastic very small outline package; 40 leads sot158-1 - p80c51hfh qfp44 plastic quad ?at package; 44 leads (lead length 1.3 mm); body 10 10 1.75 mm sot307-2
1997 apr 15 5 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 5 block diagram fig.1 block diagram. (1) pins shared with parallel port pins. programmable i/o 64 kbyte bus expansion control oscillator and timing cpu internal interrupts program memory (4k x 8 rom) data memory (128 x 8 ram) programmable serial port full duplex uart synchronous shift two 16-bit timer/event counters xtal2 xtal1 frequency reference t0 t1 counter (1) external interrupts (1) control parallel ports, address/data bus and i/o pins rxd txd mla556 p80cl31 p80cl51 10 3 (1)
1997 apr 15 6 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 6 functional diagram fig.2 functional diagram. handbook, full pagewidth port 0 address and data bus address bus port 1 port 2 v dd v ss rst xtal1 xtal2 ale ea psen port 3 rxd / data txd / clock t0 t1 int0 int1 wr rd alternative functions p80cl31 p80cl51 mla557 int2/int9
1997 apr 15 7 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 7 pinning information 7.1 pinning fig.3 pin configuration for dip40 and vso40 packages. handbook, halfpage mla558 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 30 29 28 27 21 22 23 24 25 26 p0.4/ad4 p0.5/ad5 p0.6/ad6 p0.7/ad7 p2.7/a15 p2.6/a14 p2.5/a13 ea psen rst p3.4/t0 p3.5/t1 p3.2/int0 p3.3/int1 ale p80cl31 p80cl51 xtal2 xtal1 p2.0/a8 p2.1/a9 p2.2/a10 p2.3/a11 p2.4/a12 v ss p3.7/rd p3.6/wr v dd p1.0/int2 p1.1/int3 p1.2/int4 p1.3/int5 p1.4/int6 p1.5/int7 p1.6/int8 p1.7/int9 p3.0/rxd/data p3.0/txd/clock p0.0/ad0 p0.1/ad1 p0.2/ad2 p0.3/ad3
1997 apr 15 8 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.4 pin configuration for qfp44 package. handbook, full pagewidth p80cl31 p83cl51 mbk034 1 p1.5/int7 2 3 4 5 6 7 8 9 10 11 33 32 31 30 29 28 27 26 25 24 23 12 13 14 15 16 17 18 19 20 21 22 44 43 42 41 40 39 38 37 36 35 34 p1.6/int8 p1.7/int9 rst p3.0/rxd/data n.c. p3.1/txd/clock p3.2/int0 p3.3/int1 p3.4/t0 p3.5/t1 p3.6/wr p3.7/rd xtal2 xtal1 n.c. p2.0/a8 p2.1/a9 p2.2/a10 p2.3/a11 p2.4/a12 p2.5/a13 p2.6/a14 p2.7/a15 psen ale ea n.c. p0.7/ad7 p0.6/ad6 p0.5/ad5 p0.4/ad4 p0.3/ad3 p0.2/ad2 p0.1/ad1 p0.0/ad0 v dd n.c. p1.0/int2 p1.1/int3 p1.2/int4 p1.3/int5 p1.4/int6 v ss
1997 apr 15 9 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 7.2 pin description table 1 pin description for dip40 (sot190-1), vso40 (sot319-2) and qfp44 (sot307-2) packages for more extensive description of the port pins see chapter 10 i/o facilities. symbol pin description dip40 vso40 qfp44 p1.0/ int2 1 40 port 1 : 8-bit bidirectional i/o port (p1.0 to p1.7). port pins that have logic 1s written to them are pulled high by internal pull-ups, and in this state can be used as inputs. as inputs, port 1 pins that are externally pulled low will source current (i il , see chapter 21) due to the internal pull-ups. port 1 output buffers can sink/source 4 ls ttl loads. alternative functions: C int2 to int9 are external interrupt inputs. p1.1/ int3 2 41 p1.2/ int4 3 42 p1.3/ int5 4 43 p1.4/ int6 5 44 p1.5/ int7 6 1 p1.6/ int8 7 2 p1.7/ int9 8 3 rst 9 4 reset : a high level on this pin for two machine cycles while the oscillator is running resets the device. p3.0/rxd/data 10 5 port 3: 8-bit bidirectional i/o port (p3.0 to p3.7). same characteristics as port 1. alternative functions: C rxd/data is the serial port receiver data input (asynchronous) or data input/output (synchronous) C txd/clock is the serial port receiver data output (asynchronous) or clock output (synchronous) C int0 and int1 are external interrupts 0 and 1 C t0 and t1 are external inputs for timers 0 and 1 C wr is the external data memory write strobe C rd is the external data memory read strobe. p3.1/txd/clock 11 7 p3.2/ int0 12 8 p3.3/ int1 13 9 p3.4/t0 14 10 p3.5/t1 15 11 p3.6/ wr 16 12 p3.7/ rd 17 13 xtal2 18 14 crystal oscillator output : output of the inverting ampli?er of the oscillator. left open when external clock is used. xtal1 19 15 crystal oscillator input : input to the inverting ampli?er of the oscillator, also the input for an externally generated clock source. v ss 20 16 ground: circuit ground potential. p2.0 to p2.7 a8 to a15 21 to 28 18 to 25 port 2 : 8-bit bidirectional i/o port (p2.0 to p2.7) with internal pull-ups. same characteristics as port 1. high-order addressing : port 2 emits the high-order address byte (a8 to a15) during accesses to external memory that use 16-bit addresses (movx @dptr). in this application it uses the strong internal pull-ups when emitting logic 1s. during accesses to external memory that use 8-bit addresses (movx @ri), port 2 emits the contents of the p2 special function register. psen 29 26 program store enable . output read strobe to external program memory. when executing code out of external program memory, psen is activated twice each machine cycle. however, during each access to external data memory two psen activations are skipped.
1997 apr 15 10 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 ale 30 27 address latch enable . output pulse for latching the low byte of the address during access to external memory. ale is emitted at a constant rate of 1 6 f osc , and may be used for external timing or clocking purposes (assuming movx instructions are not used). ea 31 29 external access . when ea is held high the cpu executes out of internal program memory (unless the program counter exceeds 0fffh). holding ea low forces the cpu to execute out of external memory regardless of the value of the program counter. p0.7 to p0.0 ad7 to ad0 32 to 39 30 to 37 port 0 : 8-bit open-drain bidirectional i/o port. as an open-drain output port it can sink 8 ls ttl loads. port 0 pins that have logic 1s written to them float, and in that state will function as high impedance inputs. low-order addressing : port 0 is also the multiplexed low-order address and data bus during access to external memory. the strong internal pull-ups are used while emitting logic 1s within the low order address. v dd 40 38 power supply. n.c. - 6, 17, 28, 39 not connected. symbol pin description dip40 vso40 qfp44
1997 apr 15 11 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 8 functional description overview this chapter gives a brief overview of the device. the detailed functional description is in the following chapters as follows: chapter 9 memory organization chapter 10 i/o facilities chapter 11 timers/event counters chapter 12 reduced power modes chapter 13 standard serial interface sio0: uart chapter 14 interrupt system chapter 15 oscillator circuitry chapter 16 reset. 8.1 general the p80clx1 is a stand-alone high-performance cmos microcontroller designed for use in real-time applications such as instrumentation, industrial control, intelligent computer peripherals and consumer products. the device provides hardware features, architectural enhancements and new instructions to function as a controller for applications requiring up to 64 kbytes of program memory and/or up to 64 kbytes of data memory. the p80clx1 contains 4 kbytes program memory (rom; p80cl51 only); a static 128 bytes data memory (ram); 32 i/o lines; two16-bit timer/event counters; a thirteen-source, two priority-level, nested interrupt structure and on-chip oscillator and timing circuit. a standard uart serial interface is also provided. the device has two software-selectable modes of reduced activity for power reduction: idle mode ; freezes the cpu while allowing the timers, serial i/o and interrupt system to continue functioning. power-down mode ; saves the ram contents but freezes the oscillator causing all other chip functions to be inoperative. 8.2 cpu timing a machine cycle consists of a sequence of 6 states. each state lasts for two oscillator periods, thus a machine cycle takes 12 oscillator periods or 1 m s if the oscillator frequency (f osc ) is 12 mhz.
1997 apr 15 12 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 9 memory organization the p80clx1 has 4 kbytes of program memory (rom; p80cl51 only) plus 128 bytes of data memory (ram) on board.the device has separate address spaces for program and data memory (see fig.5). using port latches p0 and p2, the p80clx1 can address a maximum of 64 kbytes of program memory and a maximum of 64 kbytes of data memory. the cpu generates both read ( rd) and write ( wr) signals for external data memory accesses, and the read strobe ( psen) for external program memory. 9.1 program memory the p80cl51 contains 4 kbytes of internal rom. after reset the cpu begins execution at location 0000h. the lower 4 kbytes of program memory can be implemented in either on-chip rom or external program memory. if the ea pin is tied to v dd , then program memory fetches from addresses 0000h to 0fffh are directed to the internal rom. fetches from addresses 1000h to ffffh are directed to external rom. program counter values greater than 0fffh are automatically addressed to external memory regardless of the state of the ea pin. 9.2 data memory the p80clx1 contains 128 bytes of internal ram and 25 special function registers (sfr). the memory map (fig.5) shows the internal data memory space divided into the lower 128, the upper 128, and the sfr space. the lower 128 bytes of the internal ram are organized as mapped in fig.6. the lowest 32 bytes are grouped into 4 banks of 8 registers. program instructions refer to these registers within a register bank as r0 through r7. two bits in the program status word select which register bank is in use. the next 16 bytes above the register banks form a block of bit-addressable memory space. the 128 bits in this area can be directly addressed by the single-bit manipulation instructions. the remaining registers (30h to 7fh) are directly and indirectly byte addressable. fig.5 memory map. handbook, full pagewidth mla559 internal data ram 255 127 0 external (ea = 0) internal (ea = 1) internal data memory external data memory program memory external 64k 64k 4096 4095 overlapped space 0 4095 special function registers
1997 apr 15 13 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.6 the lower 128 bytes of internal ram. handbook, halfpage mla560 - 1 r7 r0 07h 0 r7 r0 0fh 08h r7 r0 17h 10h r7 r0 1fh 18h 2fh 7fh 20h 30h bit-addressable space (bit addresses 0 to 7f) 4 banks of 8 registers (r0 to r7) 9.3 special function registers (sfrs) the upper 128 bytes are the address locations of the sfrs. figure 7 shows the sfr space. the sfrs include the port latches, timers, peripheral control, serial i/o registers, etc. these registers can only be accessed by direct addressing. there are 128 directly addressable locations in the sfr address space (sfrs with addresses divisible by eight). 9.4 addressing the p8xcl410 has five methods for addressing source operands: register direct register-indirect immediate base-register plus index-register-indirect. the first three methods can be used for addressing destination operands. most instructions have a destination/source field that specifies the data type, addressing methods and operands involved. for operations other than movs, the destination operand is also a source operand. access to memory addressing is as follows: registers in one of the four register banks through register, direct or register-indirect internal ram (128 bytes) through direct or register-indirect special function registers through direct external data memory through register-indirect program memory look-up tables through base-register plus index-register-indirect.
1997 apr 15 14 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.7 special function register memory map. b ook, full pagewidth mla561 e6 e7 e5 e4 e3 e2 e1 e0 d6 d7 d5 d4 d3 d2 d1 d0 ae af ad ac ab aa a9 a8 a6 a7 a5 a4 a3 a2 a1 a0 9e 9f 9d 9c 9b 9a 99 98 96 97 95 94 93 92 91 90 8e 8f 8d 8c 8b 8a 89 88 86 87 85 84 83 82 81 80 bit address register mnemonic direct byte address (hex) e0h d0h c0h b8h b0h a8h a0h 99h 98h 90h 8dh 8ch 8bh 8ah 89h 88h 87h 83h 82h 81h 80h sfrs containing directly addressable bits acc psw p2 s0buf s0con p1 th1 th0 tl1 tl0 tmod pcon dph dpl sp p0 irq1 ip0 p3 ien0 tcon ee ef ed ec eb ea e9 e8 e8h ien1 e9h f6 f7 f5 f4 f3 f2 f1 f0 f0h b fe ff fd fc fb fa f9 f8 f8h ip1 ix1 bd bc bb ba b9 b8 c6 c7 c5 c4 c3 c2 c1 c0 b5 b4 b3 b2 b1 b0 b6 b7
1997 apr 15 15 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 10 i/o facilities 10.1 ports the p80clx1 has 32 i/o lines treated as 32 individually addressable bits or as four parallel 8-bit addressable ports. ports 0, 1, 2 and 3 perform the alternative functions detailed below. to enable a port pin alternate function, the port bit latch in its sfr must contain a logic 1. port 0 provides the multiplexed low-order address and data bus for expanding the device with standard memories and peripherals. port 1 provides the inputs for the external interrupts int2 to int9. port 2 provides the high-order address when expanding the device with external program or data memory. port 3 pins can be configured individually to provide: external interrupt request inputs: int1 and int0 timer/counter inputs: t1 and t0 control signals to read and write to external memories: rd and wr uart input and output: rxd/data and txd/clock. each port consists of a latch (sfrs p0 to p3), an output driver and input buffer. ports 1, 2, and 3 have internal pull-ups figure 8(a) shows that the strong transistor p1 is turned on for only 2 oscillator periods after a low-to-high transition in the port latch. when on, it turns on p3 (a weak pull-up) through the inverter. this inverter and p3 form a latch which holds the logic 1. in port 0 the pull-up p1 is only on when emitting logic 1s for external memory access. writing a logic 1 to a port 0 bit latch leaves both output transistors switched off so that the pin can be used as a high-impedance input. 10.2 port options the pins of port 1, port 2 and port 3 may be individually configured with one of the following options. these options are also shown in fig.8. option 1 standard port ; quasi-bidirectional i/o with pull-up. the strong booster pull-up p1 is turned on for two oscillator periods after a low-to-high transition in the port latch; fig.8(a). option 2 open-drain ; quasi-bidirectional i/o with n-channel open-drain output. use as an output requires the connection of an external pull-up resistor; see fig.8(b). option 3 push-pull ; output with drive capability in both polarities. under this option, pins can only be used as outputs; see fig.8(c). 10.3 port 0 options the definition of port options for port 0 is slightly different. two cases are considered. first, access to external memory ( ea = 0 or access above the built-in memory boundary) and second, i/o accesses. 10.3.1 e xternal memory accesses option 1 true logic 0 and logic 1 are written as address to the external memory (strong pull-up to be used). option 2 an external pull-up resistor is required for external accesses. option 3 not allowed for external memory accesses as the port can only be used as output. 10.3.2 i/o a ccesses option 1 when writing a logic 1 to the port latch, the strong pull-up p1 will be on for 2 oscillator periods. no weak pull-up exists. without an external pull-up, this option can be used as a high-impedance input. option 2 open-drain; quasi-directional i/o with n-channel open-drain output. use as an output requires the connection of an external pull-up resistor. see fig.8(b). option 3 push-pull; output with drive capability in both polarities. under this option pins can only be used as outputs. see fig.8(c). 10.4 set/reset options individual mask selection of the post-reset state is available with any of the above pins. the required selection is made by appending s or r to options 1, 2, or 3 above. option r reset, at reset this pin will be initialized low. option s set, at reset this pin will be initialized high.
1997 apr 15 16 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.8 port configuration options. handbook, full pagewidth mgd677 p1 n strong pull-up +5 v q from port latch (c) push-pull p1 p2 p3 input data read port pin 2 oscillator periods n strong pull-up i/o pin +5 v q from port latch input buffer (a) standard i/o pin n +5 v q from port latch input data read port pin input buffer (b) open-drain external pull-up i/o pin
1997 apr 15 17 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 11 timers/event counters the p80clx1 contains two16-bit timer/event counter registers; timer 0 and timer 1, which can perform the following functions: measure time intervals and pulse durations count events generate interrupt requests. in the timer operating mode the register is incremented every machine cycle. since a machine cycle consists of 12 oscillator periods, the count rate is 1 12 f osc . in the counter operating mode, the register is incremented in response to a high-to-low transition. since it takes 2 machine cycles (24 oscillator periods) to recognize a high-to-low transition, the maximum count rate is 1 24 f osc . to ensure a given level is sampled, it should be held for at least one complete machine cycle. timer 0 and timer 1 can be programmed independently to operate in four modes: mode 0 8-bit timer or 8-bit counter each with divide-by-32 prescaler. mode 1 16-bit time-interval or event counter. mode 2 8-bit time-interval or event counter with automatic reload upon overflow. mode 3 timer 0 establishes tl0 and th0 as two separate counters. 12 reduced power modes there are two software selectable modes of reduced activity for further power reduction: idle and power-down. 12.1 idle mode idle mode operation permits the external interrupts, uart, and timer blocks to continue to function while the clock to the cpu is halted. idle mode is entered by setting the idl bit in the power control register (pcon.0, see table 2). the instruction that sets idl is the last instruction executed in the normal operating mode before the idle mode is activated. once in idle mode, the cpu status is preserved along with the stack pointer, program counter, program status word and accumulator. the ram and all other registers maintain their data during idle mode. the status of the external pins during idle mode is shown in table 3. the following functions remain active during the idle mode: timer 0 and timer 1 uart external interrupt. these functions may generate an interrupt or reset; thus ending the idle mode. there are two ways to terminate the idle mode: 1. activation of any enabled interrupt will cause idl (pcon.0) to be cleared by hardware thus terminating the idle mode. the interrupt is serviced, and following the reti instruction, the next instruction to be executed will be the one following the instruction that put the device in the idle mode. the flag bits gf0 (pcon.2) and gf1 (pcon.3) may be used to determine whether the interrupt was received during normal execution or during the idle mode. for example, the instruction that writes to pcon.0 can also set or clear one or both flag bits. when the idle mode is terminated by an interrupt, the service routine can examine the status of the flag bits. 2. the second way of terminating the idle mode is with an external hardware reset. since the oscillator is still running, the hardware reset is required to be active for two machine cycles (24 oscillator periods) to complete the reset operation. reset redefines all sfrs but does not affect the on-chip ram. 12.2 power-down mode operation in power-down mode freezes the oscillator. the internal connections which link both idle and power-down signals to the clock generation circuit are shown in fig.9. power-down mode is entered by setting the pd bit in the power control register (pcon.1, see table 2). the instruction that sets pd is the last executed prior to going into the power-down mode. once in the power-down mode, the oscillator is stopped. the contents of the on-chip ram and the sfrs are preserved. the port pins output the value held by their respective sfrs. ale and psen are held low. in the power-down mode, v dd may be reduced to minimize circuit power consumption. the supply voltage must not be reduced until the power-down mode is entered, and must be restored before the hardware reset is applied which will free the oscillator. reset should not be released until the oscillator has restarted and stabilized.
1997 apr 15 18 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 12.3 wake-up from power-down mode when in power-down mode the controller can be woken-up with either the external interrupts int2 to int9, or a reset operation. the wake-up operation has two basic approaches as explained in section 12.3.1; 12.3.2 and illustrated in fig.10. 12.3.1 w ake - up using int2 to int9 if any of the interrupts int2 to int9 are enabled, the device can be woken-up from the power-down mode with the external interrupts. to ensure that the oscillator is stable before the controller restarts, the internal clock will remain inactive for 1536 oscillator periods. this is controlled by an on-chip delay counter. 12.3.2 w ake - up using rst to wake-up the p80clx1, the rst pin must be kept high for a minimum of 24 periods. the on-chip delay counter is inactive. the user must ensure that the oscillator is stable before any operation is attempted. 12.4 power control register (pcon) see tables 2 and 3. idle and power-down modes are activated by software using this sfr. pcon is not bit-addressable. 12.5 status of external pins the status of the external pins during idle and power-down mode is shown in table 4. if the power-down mode is activated whilst accessing external program memory, the port data that is held in the special function register p2 is restored to port 2. if the data is a logic 1, the port pin is held high during the power-down mode by the strong pull-up transistor p1; see fig.8(a). table 2 power control register (address 87h) table 3 description of pcon bits table 4 status of external pins during idle and power-down modes 7 6 543210 smod --- gf1 gf0 pd idl bit symbol description 7 smod double baud rate bit; see description of uart 6, 5, 4 - reserved 3 and 2 gf1 and gf0 general purpose ?ag bits 1pd power-down bit; setting this bit activates the power-down mode 0 idl idle mode bit; setting this bit activates the idle mode mode memory ale psen port 0 port 1 port 2 port 3 port 4 idle internal 1 1 port data port data port data port data port data external 1 1 ?oating port data address port data port data power-down internal 0 0 port data port data port data port data port data external 0 0 ?oating port data port data port data port data
1997 apr 15 19 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.9 internal clock control in idle and power-down mode. handbook, full pagewidth mla563 oscillator clock generator interrupts serial ports timer blocks cpu idl pd xtal1 xtal2 fig.10 wake-up operation. handbook, full pagewidth mgd679 delay counter 1536 periods 24 periods power-down rst pin external interrupt oscillator
1997 apr 15 20 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 13 standard serial interface sio0: uart this serial port is full duplex which means that it can transmit and receive simultaneously. it is also receive-buffered and can commence reception of a second byte before a previously received byte has been read from the register. (however, if the first byte has not been read by the time the reception of the second byte is complete, one of the bytes will be lost). the serial port receive and transmit registers are both accessed via the special function register s0buf. writing to s0buf loads the transmit register and reading s0buf accesses a physically separate receive register. the serial port can operate in 4 modes: mode 0 serial data enters and exits through rxd. txd outputs the shift clock. eight bits are transmitted/received (lsb first). the baud rate is fixed at 1 12 f osc . mode 1 10 bits are transmitted (through txd) or received (through rxd): a start bit (logic 0), 8 data bits (lsb first), and a stop bit (logic 1). on receive, the stop bit goes into rb8 in special function register s0con. the baud rate is variable. mode 2 11 bits are transmitted (through txd) or received (through rxd): start bit (logic 0), 8 data bits (lsb first), a programmable 9 th data bit, and a stop bit (logic 1). on transmit, the 9 th data bit (tb8 in s0con) can be assigned the value of a logic 0 or logic 1. or, for example, the parity bit (p, in the psw) could be moved into tb8. on receive, the 9 th data bit goes into rb8 in s0con, while the stop bit is ignored. the baud rate is programmable to either 1 32 or 1 64 f osc . mode 3 11 bits are transmitted (through txd) or received (through rxd): a start bit (logic 0), 8 data bits (lsb first), a programmable 9 th data bit and a stop bit (logic 1). in fact, mode 3 is the same as mode 2 in all respects except baud rate. the baud rate in mode 3 is variable. in all four modes, transmission is initiated by any instruction that uses s0buf as a destination register. reception is initiated in mode 0 by the condition ri = 0 and ren = 1. reception is initiated in the other modes by the incoming start bit if ren = 1. 13.1 multiprocessor communications modes 2 and 3 have a special provision for multiprocessor communications. in these modes, 9 data bits are received. the 9 th bit goes into rb8. the following bit is the stop bit. the port can be programmed such that when the stop bit is received, the serial port interrupt will be activated, but only if rb8 = 1. this feature is enabled by setting bit sm2 in s0con. one use of this feature, in multiprocessor systems, is as follows. when the master processor wants to transmit a block of data to one of several slaves, it first sends out an address byte which identifies the target slave. an address byte differs from a data byte in that the 9 th bit is high in an address byte and low in a data byte. with sm2 = 1, no slave will be interrupted by a data byte. an address byte, however, will interrupt all slaves, so that each slave can examine the received byte and see if it is being addressed. the addressed slave will clear its sm2 bit and prepare to receive the data bytes that will be sent. the slaves that were not being addressed leave their sm2 bits set and go on about their business, ignoring the coming data bytes. sm2 has no effect in mode 0, and in mode 1 can be used to check the validity of the stop bit. in a mode 1 reception, if sm2 = 1, the receive interrupt will not be activated unless a valid stop bit is received. 13.2 serial port control and status register (s0con) the serial port control and status register is the special function register s0con. the register contains not only the mode selection bits, but also the 9 th data bit for transmit and receive (tb8 and rb8), and the serial port interrupt bits (ti and ri).
1997 apr 15 21 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 table 5 serial port control register (address 98h) table 6 description of s0con bits table 7 selection of the serial port modes 76543210 sm0 sm1 sm2 ren tb8 rb8 ti ri bit symbol description 7 sm0 these bits are used to select the serial port mode; see table 7. 6 sm1 5 sm2 enables the multiprocessor communication feature in modes 2 and 3. in these modes, if sm2 = 1, then ri will not be activated if the received 9 th data bit (rb8) is a logic 0. in mode 1, if sm2 = 1, then ri will not be activated unless a valid stop bit was received. in mode 0, sm2 should be a logic 0. 4 ren enables serial reception and is set by software to enable reception, and cleared by software to disable reception. 3 tb8 is the 9 th data bit that will be transmitted in modes 2 and 3; set or cleared by software as desired. 2 rb8 in modes 2 and 3, is the 9 th data bit received. in mode 1, if sm2 = 0 then rb8 is the stop bit that was received; in mode 0, rb8 is not used. 1ti the transmit interrupt ?ag . set by hardware at the end of the 8 th bit time in mode 0, or at the beginning of the stop bit time in the other modes, in any serial transmission. must be cleared by software. 0ri the receive interrupt ?ag . set by hardware at the end of the 8 th bit time in mode 0, or halfway through the stop bit time in the other modes, in any serial transmission (except see sm2). must be cleared by software. sm0 sm1 mode description baud rate 0 0 mode 0 shift register 1 12 f osc 0 1 mode 1 8-bit uart variable 1 0 mode 2 9-bit uart 1 32 or 1 64 f osc 1 1 mode 3 9-bit uart variable
1997 apr 15 22 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 13.3 baud rates the baud rate in mode 0 is fixed and may be calculated as: the baud rate in mode 2 depends on the value of the smod bit in special function register pcon and may be calculated as: if smod = 0 (value on reset), the baud rate is 1 64 f osc if smod = 1, the baud rate is 1 32 f osc the baud rates in modes 1 and 3 are determined by the timer 1 or timer 2 overflow rate. 13.3.1 u sing t imer 1 to generate baud rates when timer 1 is used as the baud rate generator, the baud rates in modes 1 and 3 are determined by the timer 1 overflow rate and the value of the smod bit as baud rate f osc 12 -------- = baud rate 2 smod 64 ---------------- - f osc = follows: the timer 1 interrupt should be disabled in this application. the timer itself can be configured for either timer or counter operation in any of its 3 running modes. in most typical applications, it is configured for timer operation, in the auto-reload mode (high nibble of tmod = 0010b). in this case the baud rate is given by the formula: by configuring timer 1 to run as a 16-bit timer (high nibble of tmod = 0001b), and using the timer 1 interrupt to do a 16-bit software reload, very low baud rates can be achieved. table 8 lists commonly used baud rates and how they can be obtained from timer 1. baud rate 2 smod 32 ---------------- - timer 1 overflow rate. = baud rate 2 smod 32 ---------------- - f osc 12 256 th1 C () {} -------------------------------------------------------- = table 8 commonly used baud rates generated by timer 1 notes 1. maximum in mode 0. 2. x = dont care. 3. maximum in mode 2. 4. maximum in modes 1 and 3. baud rate (kbits/s) f osc (mhz) smod c/t timer 1 mode reload value 1330.0 (1) 16.000 x (2) xx x 500.0 (3) 16.000 1 x x x 83.3 (4) 16.000 1 0 mode 2 ffh 19.2 11.059 1 0 mode 2 fdh 9.6 11.059 0 0 mode 2 fdh 4.8 11.059 0 0 mode 2 fah 2.4 11.059 0 0 mode 2 f4h 1.2 11.059 0 0 mode 2 e8h 137.5 11.986 0 0 mode 2 1dh 110.0 6.000 0 0 mode 2 72h 110.0 12.000 0 0 mode 1 feebh
1997 apr 15 23 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.11 serial port mode 0. a ndbook, full pagewidth mgc752 start shift t1 tx control tx clock send serial port interrupt rx clock r1 shift rx control start input shift register s0 buffer internal bus read sbuf shift load sbuf s0 buffer zero detector shift d cl s q internal bus write to sbuf 11111110 ren s6 ri rxd p3.0 alt output function receive shift clock txd p3.1 alt output function rxd p3.0 alt input function
1997 apr 15 24 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 handbook, full pagewidth mla567 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 s1...s6 ...s6 write to sbuf s6p2 d0 d1 d2 d3 d4 d5 d6 d7 s3p1 s6p1 write to scon (clear r1) d0 d1 d2 d3 d4 d5 d6 d7 s5p2 ale send shift rxd (data out) tsc (shift clock) ri receive shift rxd (data in) txd (shift clock) t r a n s m i t r e c e i v e fig.12 serial port mode 0 timing.
1997 apr 15 25 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 d book, full pagewidth mgc755 start shift data t1 tx control tx clock send 16 serial port interrupt 16 rx clock r1 load sbuf shift rx control start sample input shift register (9-bits) bit detector s0 buffer internal bus read sbuf shift load sbuf s0 buffer zero detector shift d cl s q tb8 internal bus write to sbuf rxd txd 0 smod rtclk 1 01 high-to-low transition detector 2 timer 1 overflow timer 2 overflow fig.13 serial port mode 1.
1997 apr 15 26 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.14 serial port mode 1 timing. handbook, full pagewidth mla569 d0 d1 d2 d3 d4 d5 d6 d7 start bit d0 d1 d2 d3 d4 d5 d6 d7 tx clock write to sbuf data shift txd ti start bit s1p1 stop bit 16 reset rx clock rxd stop bit bit detector sample time shift ri send t r a n s m i t r e c e i v e
1997 apr 15 27 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.15 serial port mode 2. handbook, full pagewidth mgc754 start stop bit shift data t1 tx control tx clock send 16 serial port interrupt 16 rx clock r1 load sbuf shift rx control start sample input shift register (9-bits) bit detector s0 buffer internal bus read sbuf shift load sbuf s0 buffer zero detector shift d cl s q tb8 internal bus write to sbuf 2 phase 2 clock (f osc / 2) rxd txd 0 csmod at pcon.7 1 high-to-low transition detector
1997 apr 15 28 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 handbook, full pagewidth tx clock stop bit gen rx clock bit detector sample time shift mla571 d0 d1 d2 d3 d4 d5 d6 d7 tb8 write to sbuf send data shift txd ti start bit s1p1 stop bit 16 reset start bit rxd d0 d1 d2 d3 d4 d5 d6 d7 stop bit ri rb8 t r a n s m i t r e c e i v e fig.16 serial port mode 2 timing.
1997 apr 15 29 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.17 serial port mode 3. h andbook, full pagewidth mgc753 start shift data t1 0 smod rtclk 1 01 tx control tx clock send 16 serial port interrupt 16 rx clock r1 load sbuf shift rx control start high-to-low transition detector sample input shift register (9-bits) bit detector s0 buffer internal bus read sbuf shift load sbuf s0 buffer zero detector shift d cl s q tb8 internal bus write to sbuf 2 timer 1 overflow timer 2 overflow rxd txd
1997 apr 15 30 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.18 serial port mode 3 timing. handbook, full pagewidth mla573 d0 d1 d2 d3 d4 d5 d6 d7 tx clock write to sbuf send data shift txd ti start bit s1p1 stop bit 16 reset start bit rx clock rxd d0 d1 d2 d3 d4 d5 d6 d7 stop bit bit detector sample time shift ri tb8 tb8 t r a n s m i t r e c e i v e
1997 apr 15 31 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 14 interrupt system external events and the real-time-driven on-chip peripherals require service by the cpu at unpredictable times. to tie the asynchronous activities of these functions to normal program execution a multiple-source, two-priority-level, nested interrupt system is provided. the system is shown in fig.19. the p80clx1 acknowledges interrupt requests from thirteen sources as follows: int0 to int9 timer 0 and timer 1 uart. each interrupt vectors to a separate location in program memory for its service routine. each source can be individually enabled or disabled by corresponding bits in the interrupt enable registers (ien0 and ien1). the priority level is selected via the interrupt priority registers (ip0 and ip1). all enabled sources can be globally disabled or enabled. figure 19 shows the interrupt system. 14.1 external interrupts int2 to int9 port 1 lines serve an alternative purpose as eight additional interrupts int2 to int9. when enabled, each of these lines may wake-up the device from the power-down mode. using the interrupt polarity register (ix1), each pin may be initialized to be either active high or active low. irq1 is the interrupt request flag register. if the interrupt is enabled, each flag will be set on an interrupt request but must be cleared by software, i.e. via the interrupt software or when the interrupt is disabled. port 1 interrupts are level sensitive. a port 1 interrupt will be recognized when a level (high or low depending on the interrupt polarity register) on p1.n is held active for at least one machine cycle. the interrupt request is not serviced until the next machine cycle. figure 20 shows the external interrupt configuration. 14.2 interrupt priority each interrupt source can be set to either a high priority or to a low priority. if a low priority interrupt is received simultaneously with a high priority interrupt, the high priority interrupt will be dealt with first. if interrupts of the same priority are requested simultaneously, the processor will branch to the interrupt polled first, according to the sequence shown in table 9 and in fig.19. the vector address is the rom location where the appropriate interrupt service routine starts. table 9 interrupt vector polling sequence a low priority interrupt routine can only be interrupted by a high priority interrupt. a high priority interrupt routine cannot be interrupted. symbol vector address (hex) source x0 (?rst) 0003 external 0 s0 002b uart x5 0053 external 5 t0 000b timer 0 x6 005b external 6 x1 0013 external 1 x2 003b external 2 x7 0063 external 7 t1 001b timer 1 x3 0043 external 3 x8 006b external 8 x4 004b external 4 x9 (last) 0073 external 9
1997 apr 15 32 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.19 interrupt system. handbook, full pagewidth interrupt sources registers priority global enable x0 s0 x5 t0 x6 x1 x2 x7 t1 x3 x8 x4 x9 ien0/1 ip0/1 high low interrupt polling sequence mla574
1997 apr 15 33 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 14.3 interrupt registers the registers used in the interrupt system are listed in table 10. tables 11 to 22 describe the contents of these registers. table 10 special function registers related to the interrupt system address register description a8h ien0 interrupt enable register e8h ien1 interrupt enable register ( int2 to int9) b8h ip0 interrupt priority register f8h ip1 interrupt priority register ( int2 to int9 e9h ix1 interrupt polarity register c0h irq1 interrupt request flag register fig.20 external interrupt configuration. handbook, full pagewidth mla575 p1.7 p1.6 p1.5 p1.4 p1.3 p1.2 p1.1 p1.0 x9 x8 x7 x6 x5 x4 x3 x2 ix1 ien1 irq1 wake-up
1997 apr 15 34 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 14.3.1 i nterrupt e nable r egister (ien0) bit values: 0 = interrupt disabled; 1 = interrupt enabled. table 11 interrupt enable register (sfr address a8h) table 12 description of ien0 bits 14.3.2 i nterrupt e nable r egister (ien1) bit values: 0 = interrupt disabled; 1 = interrupt enabled. table 13 interrupt enable register (sfr address e8h) table 14 description of ien1 bits 76543210 ea -- es0 et1 ex1 et0 ex0 bit symbol description 7 ea general enable/disable control. if ea = 0, no interrupt is enabled; if ea = 1, any individually enabled interrupt will be accepted 6 - reserved 5 - reserved 4 es0 enable uart sio interrupt 3 et1 enable timer 1 interrupt (t1) 2 ex1 enable external interrupt 1 1 et0 enable timer 0 interrupt (t0) 0 ex0 enable external interrupt 0 76543210 ex9 ex8 ex7 ex6 ex5 ex4 ex3 ex2 bit symbol description 7 ex9 enable external interrupt 9 6 ex8 enable external interrupt 8 5 ex7 enable external interrupt 7 4 ex6 enable external interrupt 6 3 ex5 enable external interrupt 5 2 ex4 enable external interrupt 4 1 ex3 enable external interrupt 3 0 ex2 enable external interrupt 2
1997 apr 15 35 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 14.3.3 i nterrupt p riority r egister (ip0) bit values: 0 = low priority; 1 = high priority. table 15 interrupt priority register (sfr address b8h) table 16 description of ip0 bits 14.3.4 i nterrupt p riority r egister (ip1) bit values: 0 = low priority; 1 = high priority. table 17 interrupt priority register (sfr address f8h) table 18 description of ip1 bits 76543210 --- ps0 pt1 px1 pt0 px0 bit symbol description 7 - reserved 6 - reserved 5 - reserved 4 ps0 uart sio interrupt priority level 3 pt1 timer 1 interrupt priority level 2 px1 external interrupt 1 priority level 1 pt0 timer 0 interrupt priority level 0 px0 external interrupt 0 priority level 76543210 px9 px8 px7 px6 px5 px4 px3 px2 bit symbol description 7 px9 external interrupt 9 priority level 6 px8 external interrupt 8 priority level 5 px7 external interrupt 7 priority level 4 px6 external interrupt 6 priority level 3 px5 external interrupt 5 priority level
1997 apr 15 36 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 14.3.5 i nterrupt p olarity r egister (ix1) writing either a logic 1 or logic 0 to any interrupt polarity register bit sets the polarity level of the corresponding external interrupt to an active high or active low respectively. table 19 interrupt polarity register (sfr address e9h) table 20 description of ix1 bits 14.3.6 i nterrupt r equest f lag r egister (irq1) table 21 interrupt request flag register (sfr address c0h) table 22 description of irq1 bits 2 px4 external interrupt 4 priority level 1 px3 external interrupt 3 priority level 0 px2 external interrupt 2 priority level 76543210 il9 il8 il7 il6 il5 il4 il3 il2 bit symbol description 7 il9 external interrupt 9 polarity level 6 il8 external interrupt 8 polarity level 5 il7 external interrupt 7 polarity level 4 il6 external interrupt 6 polarity level 3 il5 external interrupt 5 polarity level 2 il4 external interrupt 4 polarity level 1 il3 external interrupt 3 polarity level 0 il2 external interrupt 2 polarity level 76543210 iq9 iq8 iq7 iq6 iq5 iq4 iq3 iq2 bit symbol description 7 iq9 external interrupt 9 request ?ag 6 iq8 external interrupt 8 request ?ag 5 iq7 external interrupt 7 request ?ag 4 iq6 external interrupt 6 request ?ag 3 iq5 external interrupt 5 request ?ag 2 iq4 external interrupt 4 request ?ag 1 iq3 external interrupt 3 request ?ag 0 iq2 external interrupt 2 request ?ag bit symbol description
1997 apr 15 37 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 15 oscillator circuitry the on-chip oscillator circuitry of the p80clx1 is a single-stage inverting amplifier biased by an internal feedback resistor. the oscillator circuit is shown in fig.22. for operation as a standard quartz oscillator, no external components are needed, except for the 32 khz option. when using external capacitors, ceramic resonators, coils and rc networks to drive the oscillator, five different configurations are supported (see table 23 and fig.21). in the power-down mode the oscillator is stopped and xtal1 is pulled high. the oscillator inverter is switched off to ensure no current will flow regardless of the voltage at xtal1, for configurations (a), (b), (c), (d), (e) and (g) of fig.21. to drive the device with an external clock source, apply the external clock signal to xtal1, and leave xtal2 to float, as shown in fig.21(f). there are no requirements on the duty cycle of the external clock, since the input to the internal clocking circuitry is buffered by a flip-flop. various oscillator options are provided for optimum on-chip oscillator performance; these are specified in table 23 and shown in fig.21. the required option should be stated when ordering. table 23 oscillator options option application oscillator 1 for 32 khz clock applications with external trimmer for frequency adjustment; a 4.7 m w bias resistor is needed for use in parallel with the crystal; see fig.21(c) oscillator 2 low-power, low-frequency operations using lc components; see fig.21(e) oscillator 3 medium frequency range applications oscillator 4 high frequency range applications rc oscillator rc oscillator con?guration; see figs 21(g) and 23 h andbook, full pagewidth mla577 v dd xtal1 xtal2 (d) xtal1 xtal2 (e) xtal1 xtal2 (f) xtal1 xtal2 (g) n.c. n.c. xtal1 xtal2 (b) xtal1 xtal2 (c) xtal1 xtal2 (a) standard quartz oscillator quartz oscillator with external capacitors 32 khz oscillator ceramic resonator lc - oscillator external clock rc - oscillator fig.21 oscillator configurations.
1997 apr 15 38 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.22 standard oscillator. handbook, full pagewidth mla576 v dd p80cl31 p80cl51 v dd r bias c1 i c2 i xtal1 xtal2 to internal timing circuits v dd pd fig.23 rc oscillator frequency as a function of rc. handbook, halfpage 0 600 400 200 0 246 mla579 rc ( m s) (khz) f osc rc oscillator frequency is externally adjustable; 100 khz f osc 500 khz.
1997 apr 15 39 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 table 24 oscillator type selection guide note 1. 32 khz quartz crystals with a series resistance >15 k w will reduce the guaranteed supply voltage range to 2.5 to 3.5 v. resonator frequency (mhz) option (see table 23) c1 ext. (pf) c2 ext. (pf) resonator max. series resistance min. max. min. max. quartz 0.032 oscillator 1 0 0 5 15 15 k w (1) 1.0 oscillator 2 0 30 0 30 600 w 3.58 0 15 0 15 100 w 4.0 0 20 0 20 75 w 6.0 oscillator 3 0 10 0 10 60 w 10.0 oscillator 4 0 15 0 15 60 w 12.0 0 10 0 10 40 w 16.0 0 15 0 15 20 w pxe 0.455 oscillator 2 40 50 40 50 10 w 1.0 15 50 15 50 100 w 3.58 0 40 0 40 10 w 4.0 0 40 0 40 10 w 6.0 0 20 0 20 5 w 10.0 oscillator 3 0 15 0 15 6 w 12.0 oscillator 4 10 40 10 40 6 w lc - oscillator 2 20 90 20 90 10 m h=1 w 100 m h=5 w 1 mh = 75 w
1997 apr 15 40 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 table 25 oscillator equivalent circuit parameters the equivalent circuit data of the internal oscillator compares with that of matched crystals. symbol parameter option condition min. typ. max. unit g m transconductance oscillator 1; 32 khz t amb = +25 c; v dd = 4.5 v - 15 -m s oscillator 2 200 600 1000 m s oscillator 3 400 1500 4000 m s oscillator 4 1000 4000 10000 m s c1 i input capacitance oscillator 1; 32 khz - 3.0 - pf oscillator 2 - 8.0 - pf oscillator 3 - 8.0 - pf oscillator 4 - 8.0 - pf c2 i output capacitance oscillator 1; 32 khz - 23 - pf oscillator 2 - 8.0 - pf oscillator 3 - 8.0 - pf oscillator 4 - 8.0 - pf r2 output resistance oscillator 1; 32 khz - 3800 - k w oscillator 2 - 65 - k w oscillator 3 - 18 - k w oscillator 4 - 5.0 - k w fig.24 oscillator equivalent circuit diagram. handbook, full pagewidth mla578 c1 i r f v 1 g m c2 i r 2 xtal1 xtal2
1997 apr 15 41 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 16 reset to initialize the p80clx1 a reset is performed by either of three methods: applying an external signal to the rst pin via power-on-reset circuitry. a reset leaves the internal registers as shown in chapter 18. the reset state of the port pins is mask-programmable and can be defined by the user. 16.1 external reset using the rst pin the reset input for the p80clx1 is rst. a schmitt trigger is used at the input for noise rejection. the output of the schmitt trigger is sampled by the reset circuitry every machine cycle. a reset is accomplished by holding the rst pin high for at least two machine cycles (24 oscillator periods) while the oscillator is running. the cpu responds by executing an internal reset. port pins adopt their reset state immediately after the rst goes high. during reset, ale and psen are held high. the external reset is asynchronous to the internal clock. the rst pin is sampled during state 5, phase 2 of every machine cycle. after a high is detected at the rst pin, an internal reset is repeated until rst goes low. the internal ram is not affected by reset. when v dd is turned on, the ram contents are indeterminate. 16.2 power-on-reset the device contains on-chip circuitry which switches the port pins to the customer defined logic level as soon as v dd exceeds 1.3 v; if the mask option on has been chosen. as soon as the minimum supply voltage is reached, the oscillator will start up. however, to ensure that the oscillator is stable before the controller starts, the clock signals are gated away from the cpu for a further 1536 oscillator periods. during that time the cpu is held in a reset state. a hysteresis of approximately 50 mv at a typical power-on switching level of 1.3 v will ensure correct operation (see fig.27). the on-chip power-on-reset circuitry can also be switched off via the mask option off. this option reduces the power-down current to typically 800 na and can be chosen if external reset circuitry is used. for applications not requiring the internal reset, option off should be chosen. an automatic reset can be obtained by connecting the rst pin to v dd via a 10 m f capacitor. at power-on, the voltage on the rst pin is equal to v dd minus the capacitor voltage, and decreases from v dd as the capacitor charges through the internal resistor (r rst ) to ground. the larger the capacitor, the more slowly v rst decreases. v rst must remain above the lower threshold of the schmitt trigger long enough to effect a complete reset. the time required is the oscillator start-up time, plus 2 machine cycles. the power-on-reset circuitry is shown in fig.26. fig.25 reset configuration. handbook, halfpage mla580 schmitt trigger reset circuitry rst fig.26 recommended power-on-reset circuitry. handbook, halfpage v dd v dd rst 10 f r rst mla582 p80cl31 p80cl51
1997 apr 15 42 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.27 power-on-reset switching level. handbook, full pagewidth mla581 supply voltage power-on-reset (internal) oscillator cpu running start-up time 1536 oscillator periods delay hysteresis switching level por 17 mask options for p80cl31 and p80c51 17.1 p80cl31: romless version the p80cl31 is a low voltage romless version of the p80cl51 microcontroller. the mask options for the p80cl31 are fixed as follows: port options: all ports have option 1s, i.e. standard port, high after reset oscillator option: oscillator 3 power-on-reset option: off. 17.2 p80c51: 5 v standard version the p80c51 is a 5 v version of the low voltage p80cl51 microcontroller. all functional features of the p80cl51 are maintained in the p80c51 with the exception of the mask options. the mask options on the p80c51 are fixed as follows: port options: all ports have option 1s, i.e. standard port, high after reset oscillator option: oscillator 3 power-on-reset option: off.
1997 apr 15 43 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 18 special function registers overview the p80clx1 has 25 sfrs available to the user. notes 1. bit addressable register. 2. port reset state determined by the customer. address (hex) name reset value (b) function f8 ip1 (1) 00000000 interrupt priority register ( int2 to int9) f0 b (1) 00000000 b register e9 ix1 00000000 interrupt polarity register e8 ien1 (1) 00000000 interrupt enable register 1 e0 acc (1) 00000000 accumulator d0 psw (1) 00000000 program status word c0 irq1 (1) 00000000 interrupt request flag register b8 ip0 (1) x 0000000 interrupt priority register 0 b0 p3 (1) xxxxxxxx (2) digital i/o port register 3 a8 ien0 (1) 00000000 interrupt enable register a0 p2 (1) xxxxxxxx (2) digital i/o port register 2 99 s0buf xxxxxxxx serial data buffer register 0 98 s0con (1) 00000000 serial port control register 0 90 p1 (1) xxxxxxxx (2) digital i/o port register 1 8d th1 00000000 timer 1 high byte 8c th0 00000000 timer 0 high byte 8b tl1 00000000 timer 1 low byte 8a tl0 00000000 timer 0 low byte 89 tmod 00000000 timer 0 and 1 mode control register 88 tcon (1) 00000000 timer 0 and 1 control/external interrupt control register 87 pcon 0xx00000 power control register 83 dph 00000000 data pointer high byte 82 dpl 00000000 data pointer low byte 81 sp 00000111 stack pointer 80 p0 (1) xxxxxxxx (2) digital i/o port register 0
1997 apr 15 44 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 19 instruction set the p80clx1 uses a powerful instruction set which permits the expansion of on-chip cpu peripherals and optimizes byte efficiency and execution speed. assigned opcodes add new high-power operation and permit new addressing modes. the instruction set consists of 49 single-byte, 46 two-byte and 16 three-byte instructions. when using a 12 mhz oscillator, 64 instructions execute in 1 m s and 45 instructions execute in 2 m s. multiply and divide instructions execute in 4 m s. for the description of the data addressing modes and hexadecimal opcode cross-reference see table 30. table 26 instruction set description: arithmetic operations mnemonic description bytes cycles opcode (hex) arithmetic operations add a,rr add register to a 1 1 2* add a,direct add direct byte to a 2 1 25 add a,@ri add indirect ram to a 1 1 26, 27 add a,#data add immediate data to a 2 1 24 addc a,rr add register to a with carry ?ag 1 1 3* addc a,direct add direct byte to a with carry ?ag 2 1 35 addc a,@ri add indirect ram to a with carry ?ag 1 1 36, 37 addc a,#data add immediate data to a with carry ?ag 2 1 34 subb a,rr subtract register from a with borrow 1 1 9* subb a,direct subtract direct byte from a with borrow 2 1 95 subb a,@ri subtract indirect ram from a with borrow 1 1 96, 97 subb a,#data subtract immediate data from a with borrow 2 1 94 inc a increment a 1 1 04 inc rr increment register 1 1 0* inc direct increment direct byte 2 1 05 inc @ri increment indirect ram 1 1 06, 07 dec a decrement a 1 1 14 dec rr decrement register 1 1 1* dec direct decrement direct byte 2 1 15 dec @ri decrement indirect ram 1 1 16, 17 inc dptr increment data pointer 1 2 a3 mul ab multiply a and b 1 4 a4 div ab divide a by b 1 4 84 da a decimal adjust a 1 1 d4
1997 apr 15 45 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 table 27 instruction set description: logic operations mnemonic description bytes cycles opcode (hex) logic operations anl a,rr and register to a 1 1 5* anl a,direct and direct byte to a 2 1 55 anl a,@ri and indirect ram to a 1 1 56, 57 anl a,#data and immediate data to a 2 1 54 anl direct,a and a to direct byte 2 1 52 anl direct,#data and immediate data to direct byte 3 2 53 orl a,rr or register to a 1 1 4* orl a,direct or direct byte to a 2 1 45 orl a,@ri or indirect ram to a 1 1 46, 47 orl a,#data or immediate data to a 2 1 44 orl direct,a or a to direct byte 2 1 42 orl direct,#data or immediate data to direct byte 3 2 43 xrl a,rr exclusive-or register to a 1 1 6* xrl a,direct exclusive-or direct byte to a 2 1 65 xrl a,@ri exclusive-or indirect ram to a 1 1 66, 67 xrl a,#data exclusive-or immediate data to a 2 1 64 xrl direct,a exclusive-or a to direct byte 2 1 62 xrl direct,#data exclusive-or immediate data to direct byte 3 2 63 clr a clear a 1 1 e4 cpl a complement a 1 1 f4 rl a rotate a left 1 1 23 rlc a rotate a left through the carry ?ag 1 1 33 rr a rotate a right 1 1 03 rrc a rotate a right through the carry ?ag 1 1 13 swap a swap nibbles within a 1 1 c4
1997 apr 15 46 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 table 28 instruction set description: data transfer note 1. mov a,acc is not permitted. mnemonic description bytes cycles opcode (hex) data transfer mov a,rr move register to a 1 1 e* mov a,direct (note 1) move direct byte to a 2 1 e5 mov a,@ri move indirect ram to a 1 1 e6, e7 mov a,#data move immediate data to a 2 1 74 mov rr,a move a to register 1 1 f* mov rr,direct move direct byte to register 2 2 a* mov rr,#data move immediate data to register 2 1 7* mov direct,a move a to direct byte 2 1 f5 mov direct,rr move register to direct byte 2 2 8* mov direct,direct move direct byte to direct 3 2 85 mov direct,@ri move indirect ram to direct byte 2 2 86, 87 mov direct,#data move immediate data to direct byte 3 2 75 mov @ri,a move a to indirect ram 1 1 f6, f7 mov @ri,direct move direct byte to indirect ram 2 2 a6, a7 mov @ri,#data move immediate data to indirect ram 2 1 76, 77 mov dptr,#data 16 load data pointer with a 16-bit constant 3 2 90 movc a,@a+dptr move code byte relative to dptr to a 1 2 93 movc a,@a+pc move code byte relative to pc to a 1 2 83 movx a,@ri move external ram (8-bit address) to a 1 2 e2, e3 movx a,@dptr move external ram (16-bit address) to a 1 2 e0 movx @ri,a move a to external ram (8-bit address) 1 2 f2, f3 movx @dptr,a move a to external ram (16-bit address) 1 2 f0 push direct push direct byte onto stack 2 2 c0 pop direct pop direct byte from stack 2 2 d0 xch a,rr exchange register with a 1 1 c* xch a,direct exchange direct byte with a 2 1 c5 xch a,@ri exchange indirect ram with a 1 1 c6, c7 xchd a,@ri exchange low-order digit indirect ram with a 1 1 d6, d7
1997 apr 15 47 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 table 29 instruction set description: boolean variable manipulation, program and machine control mnemonic description bytes cycles opcode (hex) boolean variable manipulation clr c clear carry ?ag 1 1 c3 clr bit clear direct bit 2 1 c2 setb c set carry ?ag 1 1 d3 setb bit set direct bit 2 1 d2 cpl c complement carry ?ag 1 1 b3 cpl bit complement direct bit 2 1 b2 anl c,bit and direct bit to carry ?ag 2 2 82 anl c,/bit and complement of direct bit to carry ?ag 2 2 b0 orl c,bit or direct bit to carry ?ag 2 2 72 orl c,/bit or complement of direct bit to carry ?ag 2 2 a0 mov c,bit move direct bit to carry ?ag 2 1 a2 mov bit,c move carry ?ag to direct bit 2 2 92 program and machine control acall addr11 absolute subroutine call 2 2 1 lcall addr16 long subroutine call 3 2 12 ret return from subroutine 1 2 22 reti return from interrupt 1 2 32 ajmp addr11 absolute jump 2 2 1 ljmp addr16 long jump 3 2 02 sjmp rel short jump (relative address) 2 2 80 jmp @a+dptr jump indirect relative to the dptr 1 2 73 jz rel jump if a is zero 2 2 60 jnz rel jump if a is not zero 2 2 70 jc rel jump if carry ?ag is set 2 2 40 jnc rel jump if carry ?ag is not set 2 2 50 jb bit,rel jump if direct bit is set 3 2 20 jnb bit,rel jump if direct bit is not set 3 2 30 jbc bit,rel jump if direct bit is set and clear bit 3 2 10 cjne a,direct,rel compare direct to a and jump if not equal 3 2 b5 cjne a,#data,rel compare immediate to a and jump if not equal 3 2 b4 cjne rr,#data,rel compare immediate to register and jump if not equal 3 2 b* cjne @ri,#data,rel compare immediate to indirect and jump if not equal 3 2 b6, b7 djnz rr,rel decrement register and jump if not zero 2 2 d* djnz direct,rel decrement direct and jump if not zero 3 2 d5 nop no operation 1 1 00
1997 apr 15 48 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 table 30 description of the mnemonics in the instruction set mnemonic description data addressing modes rr working register r0-r7 direct 128 internal ram locations and any special function register (sfr) @ri indirect internal ram location addressed by register r0 or r1 of the actual register bank #data 8-bit constant included in instruction #data 16 16-bit constant included as bytes 2 and 3 of instruction bit direct addressed bit in internal ram or sfr. addr16 16-bit destination address. used by lcall and ljmp; the branch will be anywhere within the 64 kbytes program memory address space addr11 111-bit destination address. used by acall and ajmp. the branch will be within the same 2 kbytes page of program memory as the ?rst byte of the following instruction rel signed (two's complement) 8-bit offset byte. used by sjmp and all conditional jumps; range is - 128 to +127 bytes relative to ?rst byte of the following instruction hexadecimal opcode cross-reference * 8, 9, a, b, c, d, e, f 1, 3, 5, 7, 9, b, d, f 0, 2, 4, 6, 8, a, c, e
1997 apr 15 49 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 table 31 instruction map note 1. mov a, acc is not a valid instruction. first hexadecimal character of opcode ? second hexadecimal character of opcode ? 0123 456789abcdef 0 nop ajmp addr11 ljmp addr16 rr a inc a inc direct inc @ri inc rr 0 1 01234567 1 jbc bit,rel acall addr11 lcall addr16 rrc a dec a dec direct dec @ri dec rr 0 1 01234567 2 jb bit,rel ajmp addr11 ret rl a add a,#data add a,direct add a,@ri add a,rr 0 1 01234567 3 jnb bit,rel acall addr11 reti rlc a addc a,#data addc a,direct addc a,@ri addc a,rr 0 1 01234567 4 jc rel ajmp addr11 orl direct,a orl direct,#data orl a,#data orl a,direct orl a,@ri orl a,rr 0 1 01234567 5 jnc rel acall addr11 anl direct,a anl direct,#data anl a,#data anl a,direct anl a,@ri anl a,rr 0 1 01234567 6 jz rel ajmp addr11 xrl direct,a xrl direct,#data xrl a,#data xrl a,direct xrl a,@ri xrl a,rr 0 1 01234567 7 jnz rel acall addr11 orl c,bit jmp @a+dptr mov a,#data mov direct,#data mov @ri,#data mov rr,#data 0 1 01234567 8 sjmp rel ajmp addr11 anl c,bit movc a,@a+pc div ab mov direct,direct mov direct,@ri mov direct,rr 0 1 01234567 9 mov dtpr,#data16 acall addr11 mov bit,c movc a,@a+dptr subb a,#data subb a,direct subb a,@ri sub a,rr 0 1 01234567 a orl c,/bit ajmp addr11 mov bit,c inc dptr mul ab mov @ri,direct mov rr,direct 0 1 01234567 b anl c,/bit acall addr11 cpl bit cpl c cjne a,#data,rel cjne a,direct,rel cjne @ri,#data,rel cjne rr,#data,rel 0 1 01234567 c push direct ajmp addr11 clr bit clr c swap a xch a,direct xch a,@ri xch a,rr 0 1 01234567 d pop direct acall addr11 setb bit setb c da a djnz direct,rel xchd a,@ri djnz rr,rel 0 1 01234567 e movx a,@dtpr ajmp addr11 movx a,@ri clr a mov a,direct (1) mov a,@ri mov a,rr 0 1 0 1 01234567 f movx @dtpr,a acall addr11 movx @ri,a cpl a mov direct,a mov @ri,a mov rr,a 0 1 0 1 01234567
1997 apr 15 50 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 20 limiting values in accordance with the absolute maximum rating system (iec 134). 21 dc characteristics for p80cl31 and p80cl51 v ss =0v; t amb = - 40 to +85 c; all voltages with respect to v ss unless otherwise speci?ed. symbol parameter min. max. unit v dd supply voltage - 0.5 +6.5 v v i input voltage on any pin with respect to ground (v ss ) - 0.5 v dd + 0.5 v i i dc current on any input - 5.0 +5.0 ma i o dc current on any output - 5.0 +5.0 ma p tot total power dissipation - 300 mw t stg storage temperature - 65 +150 c t amb operating ambient temperature - 40 +85 c t j operating junction temperature - +125 c symbol parameter conditions min. max. unit v dd supply voltage operating v ss = 0 v 1.8 6.0 v ram retention in power-down mode 1.0 - v supply current (note 1, note 2) i dd operating supply current oscillator 1; f clk = 32 khz; v dd = 1.8 v; t amb =25 c - 50 m a oscillator 2; f clk = 3.58 mhz; v dd =3v - 2.5 ma oscillator 3; f clk = 16 mhz; v dd =5v - 24 ma oscillator 4; f clk = 16 mhz; v dd =5v - 26 ma supply current (idle mode) (note 2, note 3) i dd(idle) supply current (idle mode) oscillator 1; f clk = 32 khz; v dd = 1.8 v; t amb =25 c - 25 m a oscillator 2; f clk = 3.58 mhz; v dd =3v - 1.0 ma oscillator 3; f clk = 16 mhz; v dd =5v - 10 ma oscillator 4; f clk = 16 mhz; v dd =5v - 12 ma supply current (power-down mode) (note 2, note 4) i dd(pd) supply current (power-down mode) v dd = 1.8 v; t amb =25 c - 10 m a
1997 apr 15 51 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 notes 1. the operating supply current is measured with all output pins disconnected; xtal 1 driven with t r =t f = 10 ns; v il =v ss ; v ih =v dd ; xtal 2 not connected; ea = rst = port 0 = v dd ; all open drain outputs connected to v ss . 2. circuits with power-on-reset option off are tested at v dd(min) = 1.8 v; within option on (typically 1.3 v) they are tested at v dd(min) = 2.3 v. please note, option on is only available on p80cl51. 3. the idle mode supply current is measured with all output pins disconnected; xtal 1 driven with t r =t f = 10 ns; v il =v ss . xtal 2 not connected; ea = port 0 = v dd ; rst = v ss ; all open drain outputs connected to v ss . 4. the power-down current is measured with all output pins disconnected; xtal 1 not connected; ea = port 0 = v dd ; rst=v ss ; all open drain outputs connected to v ss . inputs v il low level input voltage v ss 0.3v dd v v ih high level input voltage 0.7v dd v dd v i il input current logic 0 (port 1,2,3) v dd = 5 v; v i = 0.4 v -- 100 m a v dd = 2.5 v; v i = 0.4 v -- 50 m a i itl input current logic 0, high- to-low transition (port 1,2,3) v dd = 5 v; v i = 0.5v dd -- 1.0 ma v dd = 2.5 v; v i = 0.5v dd -- 500 m a i li input leakage current (port 0, ea) v ss 1997 apr 15 52 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 22 dc characteristics for p80c51 v ss =0v; v dd = 5.0v 10%; f clk = 3.5 to 16 mhz; t amb = - 40 to +85 c all voltages with respect to v ss unless otherwise speci?ed. note that the power-on-reset option is off and the oscillator option is oscillator 3. notes 1. the operating supply current is measured with all output pins disconnected; xtal 1 driven with t r =t f = 10 ns; v il =v ss ; v ih =v dd ; xtal 2 not connected; ea = rst = port 0 = v dd ; all open drain outputs connected to v ss . 2. the idle mode supply current is measured with all output pins disconnected; xtal 1 driven with t r =t f = 10 ns; v il =v ss . xtal 2 not connected; ea = port 0 = v dd ; rst = v ss ; all open drain outputs connected to v ss . 3. the power-down current is measured with all output pins disconnected; xtal 1 not connected; ea = port 0 = v dd ; rst=v ss ; all open drain outputs connected to v ss . symbol parameter conditions min. max. unit v dd supply voltage operating v ss = 0 v 4.5 5.5 v ram retention in power-down mode 1.0 - v i dd operating supply current f clk = 16 mhz; v dd = 5.0 v; note 1 - 24 ma i dd(idle) supply current (idle mode) f clk = 16 mhz; v dd = 5.0 v; note 2 - 10 ma i dd(pd) supply current (power-down mode) v dd = 5.0 v; note 3 - 50 ma inputs v il low level input voltage v ss 0.3v dd v v ih high level input voltage 0.7v dd v dd v i il input current logic 0 (port 1,2,3) v i = 0.4 v - 100 m a i tl input current logic 0, high- to-low transition (port 1,2,3) v i = 0.5v dd - 1.0 ma i li input leakage current (port 0, ea) v ss 1997 apr 15 53 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.28 frequency operating range. handbook, halfpage 02 f xtal (mhz) 46 v dd (v) 20 0 16 12 8 4 mbk035 fig.29 typical operating current as a function of frequency and v dd . t amb =25 c. handbook, halfpage 024 i dd (ma) 6 v dd (v) 20 16 12 4 0 8 mbk036 3.58 mhz 8 mhz 12 mhz 16 mhz fig.30 typical idle current as a function of frequency and v dd . t amb =25 c. handbook, halfpage 0 v dd (v) 24 16 mhz 12 mhz i dd (idle) 6 6 0 2 4 mbk046 8 mhz 3.58 mhz fig.31 typical power-down current as a function of v dd . handbook, halfpage 0246 6 4 0 2 mla592 i dd(pd) ( m a) v dd (v) t amb =25 c.
1997 apr 15 54 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 23 ac characteristics v dd =5v; v ss =0v; t amb = - 40 to +85 c; c l = 50 pf for port 0, ale and psen; c l = 40 pf for all other outputs unless speci?ed; t clk = 1/ f clk . symbol parameter f osc = 12 mhz f osc = variable unit min. max. min. max. program memory (fig.32) t lhll ale pulse width 127 - 2t clk - 40 - ns t avll address valid to ale low 43 - t clk - 40 - ns t llax address hold after ale low 48 - t clk - 35 - ns t lliv ale low to valid instruction in - 233 - 4t clk - 100 ns t llpl ale low to psen low 58 - t clk - 25 - ns t plph psen pulse width 215 - 3t clk - 35 - ns t pliv psen low to valid instruction in - 125 - 3t clk - 125 ns t pxix input instruction hold after psen 0 - 0 - ns t pxiz input instruction ?oat after psen - 63 - t clk - 20 ns t pxav psen to address valid 75 - t clk - 8 - ns t aviv address to valid instruction in - 302 - 5t clk - 115 ns t plaz psen low to address ?oat 12 - 0 - ns external data memory (figs 33 and 34) t rlrh rd pulse width 400 - 6t clk - 100 - ns t wlwh wr pulse width 400 - 6t clk - 100 - ns t llax address hold after ale low 48 - t clk - 35 - ns t rldv rd low to valid data in - 150 - 5t clk - 165 ns t rhdz data ?oat after rd - 97 - 2t clk - 70 ns t lldv ale low to valid data in - 517 8t clk - 150 ns t avdv address to valid data in - 585 - 9t clk - 165 ns t llwl ale low to rd or wr low 200 300 3t clk - 50 3t clk +50 ns t avwl address valid to rd or wr low 203 - 4 - ns t whlh rd or wr high to ale high 43 123 t clk - 40 t clk +40 ns t qvwx data valid to wr transition 23 - t clk - 60 - ns t qvwh data valid time wr high 433 - 7t clk - 150 - ns t whqx data hold after wr 33 - t clk - 50 - ns t rlaz rd low to address ?oat - 12 - 12 ns
1997 apr 15 55 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.32 read from program memory. handbook, full pagewidth mgd680 t lhll ale port 0 port 2 t cy lliv t t llpl t plph t llax t avll aviv t plaz t pliv t t pxix t pxiz t pxav address a8 to a15 address a8 to a15 inst. input inst. input a0 to a7 a0 to a7 psen handbook, full pagewidth mga177 t lhll ale port 0 port 2 t cy t lldv t llax t avll avdv t rlaz t address a8 to a15 (dph) or port 2 data input a0 to a7 psen t whlh avwl t t llwl t rlrh t rhdx t rhdz t rldv rd fig.33 read from data memory.
1997 apr 15 56 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.34 write to data memory. handbook, full pagewidth mga178 t lhll ale port 0 port 2 t cy t llax t avll address a8 to a15 (dph) or port 2 data output a0 to a7 psen t whlh avwl t t llwl t wlwh t whqx t qvwh t qvwx wr
1997 apr 15 57 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.35 instruction cycle timing. h andbook, full pagewidth mgd681 p1 p2 s1 p1 p2 s2 p1 p2 s3 p1 p2 s4 p1 p2 s5 p1 p2 s6 p1 p2 s1 p1 p2 s2 p1 p2 s3 p1 p2 s4 p1 p2 s5 p1 p2 s6 one machine cycle one machine cycle xtal1 input address a0 - a7 inst. in address a0 - a7 inst. in address a0 - a7 inst. in address a0 - a7 inst. in address a8 - a15 address a8 - a15 address a8 - a15 address a8 - a15 address a0 - a7 inst. in address a0 - a7 inst. in address a0 - a7 data output or data input address a8 - a15 address a8 - a15 or port 2 output address a8 - a15 old data new data sampling time of i/o port pins during input serial port shift clock (mode 0) port 0, 2, 3 input port 0, 2, 3 output port 2 bus (port 0) read or write of external data memory port 2 bus (port 0) external program memory fetch wr rd only active during a write to external data memory only active during a read from external data memory psen ale dotted lines are valid when rd or wr are active old data new data port 1 output
1997 apr 15 58 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 fig.36 ac testing input waveform. handbook, halfpage mla586 0.9 v 0.4 v 0.7 v 0.3 v 0.7 v 0.3 v test points dd dd dd dd dd dd fig.37 input current. handbook, 4 columns mgd682 0.5 v dd v dd - 100 m a - 500 m a i il i l i il(t)
1997 apr 15 59 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 24 p85cl000hfz piggy-back specification the differences between the masked version and the piggy-back are described below. 24.1 general description the p85cl000hfz is a piggy-back version with 256 bytes of ram used for emulation of the p80cl51 and the p83cl410 microcontrollers. the p85cl000hfz is manufactured in an advanced cmos technology. the instruction set of the p85cl000hfz is based on that of the 8051. the device has low power consumption and a wide supply voltage range. the p85cl000hfz has two software selectable modes of reduced activity for further power reduction: idle and power-down. for timing and ac/dc characteristics, please refer to the p80cl51 specifications. 24.2 feature differences/additional features with respect to p80cl51 no internal rom 8-bit cpu, ram, i/o in a single 40-lead package with dip pin-out socket for up to 16 kbytes external eprom 256 bytes ram, expandable externally to 64 kbytes i 2 c-bus interface for serial transfer on two lines on-chip oscillator: oscillator 4 option only. 24.3 common speci?cation/feature differences between p85cl000hfz and p83cl410/p80cl51 parameter p83cl410/p80cl51 p85cl000hfz piggy-back ram size 128 256 rom size 4k eprom size dependent (max. 16k) port options 1, 2, 3 1 oscillator options oscillator 1, 2, 3, 4, rc oscillator 4 mechanical dimensions standard dual in-line, small outline same pin-out as sot129-1, but larger package size current consumption i dd i dd (oscillator 4) + i eprom voltage range full full, limited by eprom esd speci?cation not tested (different package)
1997 apr 15 60 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 25 package outlines unit a max. 1 2 b 1 cd e e m h l references outline version european projection issue date iec jedec eiaj mm inches dimensions (inch dimensions are derived from the original mm dimensions) sot129-1 92-11-17 95-01-14 a min. a max. b z max. w m e e 1 1.70 1.14 0.53 0.38 0.36 0.23 52.50 51.50 14.1 13.7 3.60 3.05 0.254 2.54 15.24 15.80 15.24 17.42 15.90 2.25 4.7 0.51 4.0 0.067 0.045 0.021 0.015 0.014 0.009 2.067 2.028 0.56 0.54 0.14 0.12 0.01 0.10 0.60 0.62 0.60 0.69 0.63 0.089 0.19 0.020 0.16 051g08 mo-015aj m h c (e ) 1 m e a l seating plane a 1 w m b 1 e d a 2 z 40 1 21 20 b e pin 1 index 0 5 10 mm scale note 1. plastic or metal protrusions of 0.25 mm maximum per side are not included. (1) (1) (1) dip40: plastic dual in-line package; 40 leads (600 mil) sot129-1
1997 apr 15 61 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 unit a 1 a 2 a 3 b p cd (1) e (2) z (1) eh e ll p qy w v q references outline version european projection issue date iec jedec eiaj mm inches 0.3 0.1 2.45 2.25 0.25 0.42 0.30 0.22 0.14 15.6 15.2 7.6 7.5 0.762 2.25 12.3 11.8 1.15 1.05 0.6 0.3 7 0 o o 0.1 0.1 dimensions (inch dimensions are derived from the original mm dimensions) notes 1. plastic or metal protrusions of 0.4 mm maximum per side are not included. 2. plastic interlead protrusions of 0.25 mm maximum per side are not included. 1.7 1.5 sot158-1 92-11-17 95-01-24 x w m q a a 1 a 2 b p d h e l p q detail x e z e c l v m a (a ) 3 a y 40 20 21 1 pin 1 index 0.012 0.004 0.096 0.089 0.017 0.012 0.0087 0.0055 0.61 0.60 0.30 0.29 0.03 0.089 0.48 0.46 0.045 0.041 0.024 0.012 0.004 0.2 0.008 0.004 0.067 0.059 0.010 0 5 10 mm scale vso40: plastic very small outline package; 40 leads sot158-1 a max. 2.70 0.11
1997 apr 15 62 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 unit a 1 a 2 a 3 b p ce (1) eh e ll p qz y w v q references outline version european projection issue date iec jedec eiaj mm 0.25 0.05 1.85 1.65 0.25 0.40 0.20 0.25 0.14 10.1 9.9 0.8 1.3 12.9 12.3 0.85 0.75 1.2 0.8 10 0 o o 0.15 0.1 0.15 dimensions (mm are the original dimensions) note 1. plastic or metal protrusions of 0.25 mm maximum per side are not included. 0.95 0.55 sot307-2 92-11-17 95-02-04 d (1) (1) (1) 10.1 9.9 h d 12.9 12.3 e z 1.2 0.8 d e e b 11 c e h d z d a z e e v m a x 1 44 34 33 23 22 12 y q a 1 a l p q detail x l (a ) 3 a 2 pin 1 index d h v m b b p b p w m w m 0 2.5 5 mm scale qfp44: plastic quad flat package; 44 leads (lead length 1.3 mm); body 10 x 10 x 1.75 mm sot307-2 a max. 2.10
1997 apr 15 63 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 26 soldering 26.1 introduction there is no soldering method that is ideal for all ic packages. wave soldering is often preferred when through-hole and surface mounted components are mixed on one printed-circuit board. however, wave soldering is not always suitable for surface mounted ics, or for printed-circuits with high population densities. in these situations reflow soldering is often used. this text gives a very brief insight to a complex technology. a more in-depth account of soldering ics can be found in our ic package databook (order code 9398 652 90011). 26.2 dip 26.2.1 s oldering by dipping or by wave the maximum permissible temperature of the solder is 260 c; solder at this temperature must not be in contact with the joint for more than 5 seconds. the total contact time of successive solder waves must not exceed 5 seconds. the device may be mounted up to the seating plane, but the temperature of the plastic body must not exceed the specified maximum storage temperature (t stg max ). if the printed-circuit board has been pre-heated, forced cooling may be necessary immediately after soldering to keep the temperature within the permissible limit. 26.2.2 r epairing soldered joints apply a low voltage soldering iron (less than 24 v) to the lead(s) of the package, below the seating plane or not more than 2 mm above it. if the temperature of the soldering iron bit is less than 300 c it may remain in contact for up to 10 seconds. if the bit temperature is between 300 and 400 c, contact may be up to 5 seconds. 26.3 qfp and vso 26.3.1 r eflow soldering reflow soldering techniques are suitable for all qfp and vso packages. the choice of heating method may be influenced by larger plastic qfp packages (44 leads, or more). if infrared or vapour phase heating is used and the large packages are not absolutely dry (less than 0.1% moisture content by weight), vaporization of the small amount of moisture in them can cause cracking of the plastic body. for more information, refer to the drypack chapter in our quality reference manual (order code 9397 750 00192). reflow soldering requires solder paste (a suspension of fine solder particles, flux and binding agent) to be applied to the printed-circuit board by screen printing, stencilling or pressure-syringe dispensing before package placement. several techniques exist for reflowing; for example, thermal conduction by heated belt. dwell times vary between 50 and 300 seconds depending on heating method. typical reflow temperatures range from 215 to 250 c. preheating is necessary to dry the paste and evaporate the binding agent. preheating duration: 45 minutes at 45 c. 26.3.2 w ave soldering 26.3.2.1 qfp wave soldering is not recommended for qfp packages. this is because of the likelihood of solder bridging due to closely-spaced leads and the possibility of incomplete solder penetration in multi-lead devices. if wave soldering cannot be avoided, the following conditions must be observed: a double-wave (a turbulent wave with high upward pressure followed by a smooth laminar wave) soldering technique should be used. the footprint must be at an angle of 45 to the board direction and must incorporate solder thieves downstream and at the side corners. even with these conditions, do not consider wave soldering the following packages: qfp52 (sot379-1), qfp100 (sot317-1), qfp100 (sot317-2), qfp100 (sot382-1) or qfp160 (sot322-1). 26.3.2.2 vso wave soldering techniques can be used for all vso packages if the following conditions are observed: a double-wave (a turbulent wave with high upward pressure followed by a smooth laminar wave) soldering technique should be used. the longitudinal axis of the package footprint must be parallel to the solder flow. the package footprint must incorporate solder thieves at the downstream end.
1997 apr 15 64 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 26.3.2.3 method (qfp and vso) during placement and before soldering, the package must be fixed with a droplet of adhesive. the adhesive can be applied by screen printing, pin transfer or syringe dispensing. the package can be soldered after the adhesive is cured. maximum permissible solder temperature is 260 c, and maximum duration of package immersion in solder is 10 seconds, if cooled to less than 150 c within 6 seconds. typical dwell time is 4 seconds at 250 c. a mildly-activated flux will eliminate the need for removal of corrosive residues in most applications. 26.3.3 r epairing soldered joints fix the component by first soldering two diagonally- opposite end leads. use only a low voltage soldering iron (less than 24 v) applied to the flat part of the lead. contact time must be limited to 10 seconds at up to 300 c. when using a dedicated tool, all other leads can be soldered in one operation within 2 to 5 seconds between 270 and 320 c. 27 definitions 28 life support applications these products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. philips customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify philips for any damages resulting from such improper use or sale. data sheet status objective speci?cation this data sheet contains target or goal speci?cations for product development. preliminary speci?cation this data sheet contains preliminary data; supplementary data may be published later. product speci?cation this data sheet contains ?nal product speci?cations. limiting values limiting values given are in accordance with the absolute maximum rating system (iec 134). stress above one or more of the limiting values may cause permanent damage to the device. these are stress ratings only and operation of the device at these or at any other conditions above those given in the characteristics sections of the speci?cation is not implied. exposure to limiting values for extended periods may affect device reliability. application information where application information is given, it is advisory and does not form part of the speci?cation.
1997 apr 15 65 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 notes
1997 apr 15 66 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 notes
1997 apr 15 67 philips semiconductors product speci?cation low voltage 8-bit microcontrollers with uart p80cl31; p80cl51 notes
internet: http://www.semiconductors.philips.com philips semiconductors C a worldwide company ? philips electronics n.v. 1997 sca54 all rights are reserved. reproduction in whole or in part is prohibited without the prior written consent of the copyright owner. the information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed without notice. no liability will be accepted by the publisher for any consequence of its use. publication thereof does not convey nor imply any license under patent- or other industrial or intellectual property rights. netherlands: postbus 90050, 5600 pb eindhoven, bldg. vb, tel. +31 40 27 82785, fax. +31 40 27 88399 new zealand: 2 wagener place, c.p.o. box 1041, auckland, tel. +64 9 849 4160, fax. +64 9 849 7811 norway: box 1, manglerud 0612, oslo, tel. +47 22 74 8000, fax. +47 22 74 8341 philippines: philips semiconductors philippines inc., 106 valero st. salcedo village, p.o. box 2108 mcc, makati, metro manila, tel. +63 2 816 6380, fax. +63 2 817 3474 poland: ul. lukiska 10, pl 04-123 warszawa, tel. +48 22 612 2831, fax. +48 22 612 2327 portugal: see spain romania: see italy russia: philips russia, ul. usatcheva 35a, 119048 moscow, tel. +7 095 755 6918, fax. +7 095 755 6919 singapore: lorong 1, toa payoh, singapore 1231, tel. +65 350 2538, fax. +65 251 6500 slovakia: see austria slovenia: see italy south africa: s.a. philips pty ltd., 195-215 main road martindale, 2092 johannesburg, p.o. box 7430 johannesburg 2000, tel. +27 11 470 5911, fax. +27 11 470 5494 south america: rua do rocio 220, 5th floor, suite 51, 04552-903 s?o paulo, s?o paulo - sp, brazil, tel. +55 11 821 2333, fax. +55 11 829 1849 spain: balmes 22, 08007 barcelona, tel. +34 3 301 6312, fax. +34 3 301 4107 sweden: kottbygatan 7, akalla, s-16485 stockholm, tel. +46 8 632 2000, fax. +46 8 632 2745 switzerland: allmendstrasse 140, ch-8027 zrich, tel. +41 1 488 2686, fax. +41 1 481 7730 taiwan: philips semiconductors, 6f, no. 96, chien kuo n. rd., sec. 1, taipei, taiwan tel. +886 2 2134 2865, fax. +886 2 2134 2874 thailand: philips electronics (thailand) ltd., 209/2 sanpavuth-bangna road prakanong, bangkok 10260, tel. +66 2 745 4090, fax. +66 2 398 0793 turkey: talatpasa cad. no. 5, 80640 gltepe/istanbul, tel. +90 212 279 2770, fax. +90 212 282 6707 ukraine : philips ukraine, 4 patrice lumumba str., building b, floor 7, 252042 kiev, tel. +380 44 264 2776, fax. +380 44 268 0461 united kingdom: philips semiconductors ltd., 276 bath road, hayes, middlesex ub3 5bx, tel. +44 181 730 5000, fax. +44 181 754 8421 united states: 811 east arques avenue, sunnyvale, ca 94088-3409, tel. +1 800 234 7381 uruguay: see south america vietnam: see singapore yugoslavia: philips, trg n. pasica 5/v, 11000 beograd, tel. +381 11 625 344, fax.+381 11 635 777 for all other countries apply to: philips semiconductors, marketing & sales communications, building be-p, p.o. box 218, 5600 md eindhoven, the netherlands, fax. +31 40 27 24825 argentina: see south america australia: 34 waterloo road, north ryde, nsw 2113, tel. +61 2 9805 4455, fax. +61 2 9805 4466 austria: computerstr. 6, a-1101 wien, p.o. box 213, tel. +43 1 60 101, fax. +43 1 60 101 1210 belarus: hotel minsk business center, bld. 3, r. 1211, volodarski str. 6, 220050 minsk, tel. +375 172 200 733, fax. +375 172 200 773 belgium: see the netherlands brazil: see south america bulgaria: philips bulgaria ltd., energoproject, 15th floor, 51 james bourchier blvd., 1407 sofia, tel. +359 2 689 211, fax. +359 2 689 102 canada: philips semiconductors/components, tel. +1 800 234 7381 china/hong kong: 501 hong kong industrial technology centre, 72 tat chee avenue, kowloon tong, hong kong, tel. +852 2319 7888, fax. +852 2319 7700 colombia: see south america czech republic: see austria denmark: prags boulevard 80, pb 1919, dk-2300 copenhagen s, tel. +45 32 88 2636, fax. +45 31 57 0044 finland: sinikalliontie 3, fin-02630 espoo, tel. +358 9 615800, fax. +358 9 61580920 france: 4 rue du port-aux-vins, bp317, 92156 suresnes cedex, tel. +33 1 40 99 6161, fax. +33 1 40 99 6427 germany: hammerbrookstra?e 69, d-20097 hamburg, tel. +49 40 23 53 60, fax. +49 40 23 536 300 greece: no. 15, 25th march street, gr 17778 tavros/athens, tel. +30 1 4894 339/239, fax. +30 1 4814 240 hungary: see austria india: philips india ltd, shivsagar estate, a block, dr. annie besant rd. worli, mumbai 400 018, tel. +91 22 4938 541, fax. +91 22 4938 722 indonesia: see singapore ireland: newstead, clonskeagh, dublin 14, tel. +353 1 7640 000, fax. +353 1 7640 200 israel: rapac electronics, 7 kehilat saloniki st, po box 18053, tel aviv 61180, tel. +972 3 645 0444, fax. +972 3 649 1007 italy: philips semiconductors, piazza iv novembre 3, 20124 milano, tel. +39 2 6752 2531, fax. +39 2 6752 2557 japan: philips bldg 13-37, kohnan 2-chome, minato-ku, tokyo 108, tel. +81 3 3740 5130, fax. +81 3 3740 5077 korea: philips house, 260-199 itaewon-dong, yongsan-ku, seoul, tel. +82 2 709 1412, fax. +82 2 709 1415 malaysia: no. 76 jalan universiti, 46200 petaling jaya, selangor, tel. +60 3 750 5214, fax. +60 3 757 4880 mexico: 5900 gateway east, suite 200, el paso, texas 79905, tel. +9-5 800 234 7381 middle east: see italy printed in the netherlands 457047/1200/03/pp68 date of release: 1997 apr 15 document order number: 9397 750 01512


▲Up To Search▲   

 
Price & Availability of P80CL51HFP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X